package com.kaiyidiannao.model.bean;

import java.util.ArrayList;
import java.util.List;

public class Comment {
//    private String commentId;		// 评论id
//    private String commentUsername;	// 评论人名称
//    private String commentTime;		// 评论时间
//    private String commentContent;	// 评论内容
//    private String commentUserImg;	// 评论人头像
//    private String parent;			// 父级评论 id
//    private String anonymous;		// 是否匿名 1匿名/2不匿名
//    private String top;				// 1置顶; 0没有置顶
//    private List<Comment> children; // 子回复

    private String itemid;
    private String content;
    private String qid;
    private String username;
    private List<Comment> reply;
    private String CommentTime ="2015-5-5";


//    "itemid": "1",
//            "content": "凑队去1的第1条评论",
//            "qid": "0",
//            "username": "第1评论",
//            "reply": [
//    {
//        "itemid": "2",
//            "content": "凑队去1的第1条评论的第1个回复",
//            "qid": "1",
//            "username": "第1回复"
//    },
//    {
//        "itemid": "3",
//            "content": "凑队去1的第1条评论的第2个回复",
//            "qid": "1",
//            "username": "第2回复"
//    }
//    ]


    @Override
    public String toString() {
        return "Comment{" +
                "itemid='" + itemid + '\'' +
                ", content='" + content + '\'' +
                ", qid='" + qid + '\'' +
                ", username='" + username + '\'' +
                ", reply=" + reply +
                ", CommentTime='" + CommentTime + '\'' +
                '}';
    }

    public String getItemid() {
        return itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = itemid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getQid() {
        return qid;
    }

    public void setQid(String qid) {
        this.qid = qid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<Comment> getReply() {
        return reply;
    }

    public void setReply(List<Comment> reply) {
        this.reply = reply;
    }

    public String getCommentTime() {
        return CommentTime;
    }

    public void setCommentTime(String commentTime) {
        CommentTime = commentTime;
    }
}
